]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
panel: Remove a bit of duplicated code
authorJasper St. Pierre <jstpierre@mecheye.net>
Tue, 27 Nov 2012 18:15:50 +0000 (13:15 -0500)
committerJasper St. Pierre <jstpierre@mecheye.net>
Tue, 27 Nov 2012 18:16:30 +0000 (13:16 -0500)
The play() method does what we want here.

js/ui/panel.js

index 0388acf801b9e04090a6d20220bef9c7baa95250..9ac0db8ab34b88aaccb5e8eef0b649fafec7a17c 100644 (file)
@@ -132,10 +132,8 @@ const AnimatedIcon = new Lang.Class({
     _animationsLoaded: function() {
         this._isLoaded = true;
 
-        if (this._isPlaying) {
-            this._showFrame(0);
-            this._timeoutId = Mainloop.timeout_add(ANIMATED_ICON_UPDATE_TIMEOUT, Lang.bind(this, this._update));
-        }
+        if (this._isPlaying)
+            this.play();
     },
 
     _onDestroy: function() {